/**
 * 
 */
package com.dsbridge.enrollment.dao.mappers;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.dsbridge.enrollment.model.SubjectsDTO;

/**
 * @author rithvik
 * 
 */
public class SubjectsRowMapper implements RowMapper<SubjectsDTO> {

	@Override
	public SubjectsDTO mapRow(ResultSet rs, int arg1) throws SQLException {
		SubjectsDTO subjectsDTO = new SubjectsDTO();
		subjectsDTO.setSubjectId(rs.getInt("subject_id"));
		subjectsDTO.setSubjectName(rs.getString("subject_name"));
		return subjectsDTO;
	}

}
